package tables

const (
	ClusterTimeOutActionForLogout = 1 // 注销会话
	ClusterTimeOutActionForOff    = 2 // 断开会话

)

type VapCluster struct {
	Id              int64   `json:"id,string" gorm:"primaryKey"`
	Name            string  `json:"name"`
	CpuThreshold    float64 `json:"cpuThreshold"`
	MemoryThreshold float64 `json:"memoryThreshold"`
	TimeOutAction   int     `json:"timeOutAction"` // 1-注销会话 ，2-断开会话
	MaxSessionTime  int     `json:"maxSessionTime"`
	MaxTimeOutTime  int     `json:"maxTimeOutTime"`
	ClusterType     int     `json:"clusterType"` // 集群类型：私有、抢占、共享
	AutoCreateInfo
}

func (r *VapCluster) TableName() string {
	return "vap_clusters"
}
